package by.bsu.touragency.db.beans;

public class Star {
	private int id;
	private String name;
	private String about;

	public Star() {
		super();
	}

	public Star(String name, String about) {
		super();
		this.name = name;
		this.about = about;

	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		if (isValidStarType(name))
			this.name = name;
			}

	public String getAbout() {
		return about;
	}

	public void setAbout(String about) {
		this.about = about;
	}

	public boolean isValidStarType(String star) {
		if (star != "" & star != null && star.length() < 7) {
			return true;
		} else
			return false;
	}

}
